/*******************************************************************************
Module  : Header-Datei fuer das Modul "SPI"
Version : 1.0
Date    : 24.06.2007
Author  : Guenther Pammer

Compilerswitches: keine
*******************************************************************************/
#ifndef _SPI_H
#define _SPI_H

#include "spi_c.h"

void SPI_init        ( unsigned char clk_division  );  /* Initialisierung */
void SPI_sync        ( void );              /* Synchronisatino mit Slave */

void SPI_read_char   ( unsigned char* byte ); /* Datenwort vom Slave  */
void SPI_write_char  ( unsigned char byte );  /* Datenwort an Slave  */

void SPI_read        ( unsigned char* byte,
                       unsigned char len );   /* Datenstrom an Slave */
void SPI_write       ( unsigned char* byte,
                       unsigned char len );   /* Datenstrom vom Slave */

#endif  //_SPI_H
